package com.project.lk.nurseapp.utils;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.jcodecraeer.xrecyclerview.ProgressStyle;
import com.jcodecraeer.xrecyclerview.XRecyclerView;
import com.project.lk.nurseapp.common.adapter.BaseRecycleViewAdapter;

/**
 * 功能介绍：
 * 项目名：
 * 模块名称：
 * 作者：LK
 * 日期：2018/1/9
 * 修改日期：
 */
public class XViewSettingUtils {

    public static void setting(XRecyclerView recyclerView, BaseRecycleViewAdapter adapter,RecyclerView.LayoutManager manager){
        recyclerView.setRefreshProgressStyle(ProgressStyle.SquareSpin);
        recyclerView.setLoadingMoreProgressStyle(ProgressStyle.SquareSpin);
        recyclerView.setAdapter(adapter);
        recyclerView.setLayoutManager(manager);
    }
}
